from re import L


l = [2,3,2,4,5,3,True]
l2 = []
for i in l:
    if not  (i in l2):
        l2.append(i) 
for i in l:
    print(i,end=" ")
print("\n")
for i in l2:
    print(i,end=" ")
print("\n")

myDict = {}
def counts(x):
    #print(f"x={x} keys={list(myDict.keys())}")
    if x in myDict.keys():
        myDict[x] = myDict[x] + 1
    else:
        myDict[x] = 1
    return x
l5 = map(counts,l)
L6 = list(l5)
print(myDict)

